<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>16_堆栈结构-引用数据类型当做参数</title>
    </head>
    <body>
        <script>
            function f1(xxx){
                xxx[1] = 666;
            }
            var arr = [1,2,3];
            f1(arr);
            console.log(arr);
        </script>
    </body>
</html>